﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BF.Web.Pages.master
{
    public partial class WebList : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Control btnSearch = this.ContentPlaceHtml.FindControl("btnSearch");
            Control btnQuery = this.ContentPlaceHtml.FindControl("btnQuery");
            if (btnSearch != null)
            {
                this.form1.DefaultButton = btnSearch.UniqueID;
            }
            else if (btnQuery != null)
            {
                this.form1.DefaultButton = btnQuery.UniqueID;
            }
        }


    }
}